package JavaEE初阶.IO;

import java.io.File;
import java.io.IOException;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        File f = new File("./text.txt");
        System.out.println(f.getParent());

        System.out.println(f.getName());

        System.out.println(f.getPath());

        System.out.println(f.getAbsolutePath());

        System.out.println(f.getCanonicalFile());
    }
}
